\hypertarget{class_run__model}{\section{Run\-\_\-model Class Reference}
\label{class_run__model}\index{Run\-\_\-model@{Run\-\_\-model}}
}
Inheritance diagram for Run\-\_\-model\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_run__model}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_run__model_ad4e4d13e512eea10b09cea5e8f4443cd}{Run\-\_\-model} ()
\item 
\hyperlink{class_run__model_a6bcd742b7e0ebfd6d64c392cf8a8f954}{get\-Run\-By\-I\-D} (\$run\-Id)
\item 
\hyperlink{class_run__model_a6ec4d4081f9c6cb1bab0904756b8757e}{get\-Runs\-From\-User} (\$user\-Id)
\item 
\hyperlink{class_run__model_a063624e44bf0054b3b7e0d7999e973b3}{get\-Runs\-From\-User\-And\-Route} (\$user\-Id, \$route\-I\-D)
\item 
\hyperlink{class_run__model_a48bb23f699ec15935141d4142ca22801}{add\-Run} (\$user\-I\-D, \$route, \$start\-Time, \$avg\-Speed, \$avg\-Pulse, \$shoe, \$calorie\-Consumption, \$duration, \$comment)
\item 
\hyperlink{class_run__model_a0491e279ce72ec736a9b937b905e4f50}{update\-Run} (\$run\-I\-D, \$route\-I\-D, \$start\-Time, \$avg\-Speed, \$avg\-Pulse, \$shoe, \$calorie\-Consumption, \$duration, \$comment)
\item 
\hyperlink{class_run__model_a731b09610a59f3725b005c6f8b60666b}{del\-Run} (\$run\-I\-D)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Model for the run \begin{DoxyAuthor}{Author}
Simon, Denis, Dennis 
\end{DoxyAuthor}


\subsection{Member Function Documentation}
\hypertarget{class_run__model_a48bb23f699ec15935141d4142ca22801}{\index{Run\-\_\-model@{Run\-\_\-model}!add\-Run@{add\-Run}}
\index{add\-Run@{add\-Run}!Run_model@{Run\-\_\-model}}
\subsubsection[{add\-Run}]{\setlength{\rightskip}{0pt plus 5cm}{\bf add\-Run} (
\begin{DoxyParamCaption}
\item[{\$}]{user\-I\-D, }
\item[{\$}]{route, }
\item[{\$}]{start\-Time, }
\item[{\$}]{avg\-Speed, }
\item[{\$}]{avg\-Pulse, }
\item[{\$}]{shoe, }
\item[{\$}]{calorie\-Consumption, }
\item[{\$}]{duration, }
\item[{\$}]{comment}
\end{DoxyParamCaption}
)}}\label{class_run__model_a48bb23f699ec15935141d4142ca22801}
Adds a run to the db 
\begin{DoxyParams}{Parameters}
{\em \$user\-I\-D} & \hyperlink{class_user}{User} I\-D \\
\hline
{\em \$route} & \hyperlink{class_route}{Route} \\
\hline
{\em \$start\-Time} & Starttime \\
\hline
{\em \$avg\-Speed} & Average Speed \\
\hline
{\em \$avg\-Pulse} & Average Pulse \\
\hline
{\em \$shoe} & Shoe \\
\hline
{\em \$calorie\-Consumption} & Calorie consumption \\
\hline
{\em \$duration} & Duration \\
\hline
{\em \$comment} & Comment \\
\hline
\end{DoxyParams}
\hypertarget{class_run__model_a731b09610a59f3725b005c6f8b60666b}{\index{Run\-\_\-model@{Run\-\_\-model}!del\-Run@{del\-Run}}
\index{del\-Run@{del\-Run}!Run_model@{Run\-\_\-model}}
\subsubsection[{del\-Run}]{\setlength{\rightskip}{0pt plus 5cm}{\bf del\-Run} (
\begin{DoxyParamCaption}
\item[{\$}]{run\-I\-D}
\end{DoxyParamCaption}
)}}\label{class_run__model_a731b09610a59f3725b005c6f8b60666b}
Delete a run by 
\begin{DoxyParams}{Parameters}
{\em \$run\-I\-D} & I\-D of the run \\
\hline
\end{DoxyParams}
\hypertarget{class_run__model_a6bcd742b7e0ebfd6d64c392cf8a8f954}{\index{Run\-\_\-model@{Run\-\_\-model}!get\-Run\-By\-I\-D@{get\-Run\-By\-I\-D}}
\index{get\-Run\-By\-I\-D@{get\-Run\-By\-I\-D}!Run_model@{Run\-\_\-model}}
\subsubsection[{get\-Run\-By\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}{\bf get\-Run\-By\-I\-D} (
\begin{DoxyParamCaption}
\item[{\$}]{run\-Id}
\end{DoxyParamCaption}
)}}\label{class_run__model_a6bcd742b7e0ebfd6d64c392cf8a8f954}
gets a run by I\-D 
\begin{DoxyParams}{Parameters}
{\em \$run\-Id} & I\-D of the run \\
\hline
\end{DoxyParams}
\hypertarget{class_run__model_a6ec4d4081f9c6cb1bab0904756b8757e}{\index{Run\-\_\-model@{Run\-\_\-model}!get\-Runs\-From\-User@{get\-Runs\-From\-User}}
\index{get\-Runs\-From\-User@{get\-Runs\-From\-User}!Run_model@{Run\-\_\-model}}
\subsubsection[{get\-Runs\-From\-User}]{\setlength{\rightskip}{0pt plus 5cm}{\bf get\-Runs\-From\-User} (
\begin{DoxyParamCaption}
\item[{\$}]{user\-Id}
\end{DoxyParamCaption}
)}}\label{class_run__model_a6ec4d4081f9c6cb1bab0904756b8757e}
get all runs of a user 
\begin{DoxyParams}{Parameters}
{\em \$user\-Id} & I\-D of the user \\
\hline
\end{DoxyParams}
\hypertarget{class_run__model_a063624e44bf0054b3b7e0d7999e973b3}{\index{Run\-\_\-model@{Run\-\_\-model}!get\-Runs\-From\-User\-And\-Route@{get\-Runs\-From\-User\-And\-Route}}
\index{get\-Runs\-From\-User\-And\-Route@{get\-Runs\-From\-User\-And\-Route}!Run_model@{Run\-\_\-model}}
\subsubsection[{get\-Runs\-From\-User\-And\-Route}]{\setlength{\rightskip}{0pt plus 5cm}{\bf get\-Runs\-From\-User\-And\-Route} (
\begin{DoxyParamCaption}
\item[{\$}]{user\-Id, }
\item[{\$}]{route\-I\-D}
\end{DoxyParamCaption}
)}}\label{class_run__model_a063624e44bf0054b3b7e0d7999e973b3}
Get runs from one user on a route 
\begin{DoxyParams}{Parameters}
{\em \$user\-Id} & \hyperlink{class_user}{User} I\-D \\
\hline
{\em \$route\-I\-D} & \hyperlink{class_route}{Route} I\-D \\
\hline
\end{DoxyParams}
\hypertarget{class_run__model_ad4e4d13e512eea10b09cea5e8f4443cd}{\index{Run\-\_\-model@{Run\-\_\-model}!Run\-\_\-model@{Run\-\_\-model}}
\index{Run\-\_\-model@{Run\-\_\-model}!Run_model@{Run\-\_\-model}}
\subsubsection[{Run\-\_\-model}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Run\-\_\-model} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_run__model_ad4e4d13e512eea10b09cea5e8f4443cd}
Constructor \hypertarget{class_run__model_a0491e279ce72ec736a9b937b905e4f50}{\index{Run\-\_\-model@{Run\-\_\-model}!update\-Run@{update\-Run}}
\index{update\-Run@{update\-Run}!Run_model@{Run\-\_\-model}}
\subsubsection[{update\-Run}]{\setlength{\rightskip}{0pt plus 5cm}{\bf update\-Run} (
\begin{DoxyParamCaption}
\item[{\$}]{run\-I\-D, }
\item[{\$}]{route\-I\-D, }
\item[{\$}]{start\-Time, }
\item[{\$}]{avg\-Speed, }
\item[{\$}]{avg\-Pulse, }
\item[{\$}]{shoe, }
\item[{\$}]{calorie\-Consumption, }
\item[{\$}]{duration, }
\item[{\$}]{comment}
\end{DoxyParamCaption}
)}}\label{class_run__model_a0491e279ce72ec736a9b937b905e4f50}
Updates a run to the db 
\begin{DoxyParams}{Parameters}
{\em run\-I\-D} & \hyperlink{class_run}{Run} I\-D \\
\hline
{\em route\-I\-D} & \hyperlink{class_route}{Route} I\-D \\
\hline
{\em \$start\-Time} & Starttime \\
\hline
{\em \$avg\-Speed} & Average Speed \\
\hline
{\em \$avg\-Pulse} & Average Pulse \\
\hline
{\em \$shoe} & Shoe \\
\hline
{\em \$calorie\-Consumption} & Calorie consumption \\
\hline
{\em \$duration} & Duration \\
\hline
{\em \$comment} & Comment \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
/\-Applications/\-M\-A\-M\-P/htdocs/\-Workspace/blp2.\-0/application/models/\hyperlink{run__model_8php}{run\-\_\-model.\-php}\end{DoxyCompactItemize}
